28
This commit is contained in:
18
src/entitities.v
Normal file
18
src/entitities.v
Normal file
@@ -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
|
||||||
|
}
|
Reference in New Issue
Block a user