1
This commit is contained in:
13
src/faculty_entities.v
Normal file
13
src/faculty_entities.v
Normal file
@@ -0,0 +1,13 @@
|
||||
module main
|
||||
|
||||
@[table: 'faculty']
|
||||
pub struct Faculty {
|
||||
mut:
|
||||
id int @[primary; sql: serial]
|
||||
firstname string @[sql_type: 'TEXT']
|
||||
lastname 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']
|
||||
}
|
||||
Reference in New Issue
Block a user