diff --git a/src/entitities.v b/src/entitities.v new file mode 100644 index 0000000..ff930eb --- /dev/null +++ b/src/entitities.v @@ -0,0 +1,18 @@ +module main + +@[table: 'auth'] +pub struct Auth { +mut: + id int @[primary; sql: serial] + username string @[sql_type: 'TEXT'] + email string @[sql_type: 'TEXT'; unique] + access_level int @[sql_type: 'INTEGER'] + password string @[sql_type: 'TEXT'] + // products []Product @[fkey: 'user_id'] +} + +pub struct Noti { +mut: + status string + message string +} \ No newline at end of file