From a7ac1dc6421168d716f3bf0ddd2eca7166e940a6 Mon Sep 17 00:00:00 2001 From: libexi01 Date: Sun, 30 Jun 2024 02:38:53 +0530 Subject: [PATCH] 28 --- src/entitities.v | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/entitities.v 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