mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
all: update attributes to use new syntax
This commit is contained in:
parent
dd81cb98c6
commit
757929392e
739 changed files with 2982 additions and 2982 deletions
|
@ -1,11 +1,11 @@
|
|||
module main
|
||||
|
||||
[table: 'users']
|
||||
@[table: 'users']
|
||||
pub struct User {
|
||||
mut:
|
||||
id int [primary; sql: serial]
|
||||
username string [sql_type: 'TEXT'; unique]
|
||||
password string [sql_type: 'TEXT']
|
||||
id int @[primary; sql: serial]
|
||||
username string @[sql_type: 'TEXT'; unique]
|
||||
password string @[sql_type: 'TEXT']
|
||||
active bool
|
||||
products []Product [fkey: 'user_id']
|
||||
products []Product @[fkey: 'user_id']
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue