diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2024-10-26 23:31:37 +0200 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2024-10-26 23:31:37 +0200 |
| commit | 264e5ff691e0283e639dc70a1191b13053ccdf5c (patch) | |
| tree | 825e4d349d776ee6207317d0416e6fbf91c865ba /src/db/story.rs | |
| parent | aebd01540cc09724f68366709281d2350f758f8c (diff) | |
Feat: Add initial entities
Diffstat (limited to 'src/db/story.rs')
| -rw-r--r-- | src/db/story.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db/story.rs b/src/db/story.rs new file mode 100644 index 0000000..10fc49b --- /dev/null +++ b/src/db/story.rs @@ -0,0 +1,8 @@ +#[derive(Debug, serde::Serialize, sqlx::FromRow)] +pub struct Story { + pub id: i64, + pub language: String, + pub pdf: Vec<u8>, + pub epub: Vec<u8>, + pub pid: i64, +} |
