This commit is contained in:
2024-07-05 23:57:32 +05:30
commit 8dbbe65a09
29 changed files with 554 additions and 0 deletions

13
src/faculty_entities.v Normal file
View 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']
}