012
This commit is contained in:
@@ -3,14 +3,12 @@ module main
|
||||
@[table: 'planes']
|
||||
pub struct Plane {
|
||||
mut:
|
||||
id int @[primary; sql: serial]
|
||||
from string @[sql_type: 'TEXT']
|
||||
to string @[sql_type: 'TEXT']
|
||||
seats string @[sql_type: 'TEXT']
|
||||
seats_available int @[sql_type: 'INT']
|
||||
time string @[sql_type: 'TEXT']
|
||||
date string @[sql_type: 'TEXT']
|
||||
price int @[sql_type: 'INT']
|
||||
status string @[sql_type: 'TEXT']
|
||||
tickets []Ticket @[fkey: 'plane_id']
|
||||
id int @[primary; sql: serial]
|
||||
from string @[sql_type: 'TEXT']
|
||||
to string @[sql_type: 'TEXT']
|
||||
time string @[sql_type: 'TEXT']
|
||||
date string @[sql_type: 'TEXT']
|
||||
price int @[sql_type: 'INT']
|
||||
status string @[sql_type: 'TEXT']
|
||||
tickets []Ticket @[fkey: 'plane_id']
|
||||
}
|
||||
|
Reference in New Issue
Block a user