30 lines
523 B
Rust
30 lines
523 B
Rust
table! {
|
|
data (identity) {
|
|
identity -> Binary,
|
|
entity -> Binary,
|
|
entity_searchable -> Nullable<Text>,
|
|
attribute -> Text,
|
|
value_str -> Nullable<Text>,
|
|
value_num -> Nullable<Double>,
|
|
immutable -> Bool,
|
|
provenance -> Text,
|
|
timestamp -> Timestamp,
|
|
}
|
|
}
|
|
|
|
table! {
|
|
meta (id) {
|
|
id -> Integer,
|
|
key -> Text,
|
|
value -> Text,
|
|
}
|
|
}
|
|
|
|
table! {
|
|
users (id) {
|
|
id -> Integer,
|
|
username -> Text,
|
|
password -> Text,
|
|
}
|
|
}
|