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