1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: fullstack vweb example (#16761)

This commit is contained in:
Hitalo Souza
2023-01-05 22:36:42 -03:00
committed by GitHub
parent 43d8bc30f9
commit 0146509516
27 changed files with 759 additions and 0 deletions

View File

@ -0,0 +1,11 @@
module main
[table: 'users']
pub struct User {
mut:
id int [primary; sql: serial]
username string [required; sql_type: 'TEXT'; unique]
password string [required; sql_type: 'TEXT']
active bool
products []Product [fkey: 'user_id']
}