Refactored into service directory
This commit is contained in:
32
service/src/db/schema.rs
Normal file
32
service/src/db/schema.rs
Normal file
@@ -0,0 +1,32 @@
|
||||
diesel::table! {
|
||||
messages (id) {
|
||||
id -> Text,
|
||||
guild_id -> BigInt,
|
||||
channel_id -> BigInt,
|
||||
user_id -> BigInt,
|
||||
created -> BigInt,
|
||||
model -> Text,
|
||||
request -> Text,
|
||||
response -> Text,
|
||||
request_tags -> Array<Text>,
|
||||
response_tags -> Array<Text>,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
spells (id) {
|
||||
id -> Integer,
|
||||
name -> Text,
|
||||
school -> Text,
|
||||
level -> Integer,
|
||||
ritual -> Bool,
|
||||
concentration -> Bool,
|
||||
classes -> Array<Text>,
|
||||
damage_inflict -> Array<Text>,
|
||||
damage_resist -> Array<Text>,
|
||||
conditions -> Array<Text>,
|
||||
saving_throw -> Array<Text>,
|
||||
attack_type -> Nullable<Text>,
|
||||
data -> Jsonb
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user