add estimated_end to show data
parent
b03ea80e8e
commit
2afe17f1c0
|
@ -4,6 +4,7 @@ CREATE TABLE
|
||||||
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
|
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
|
||||||
dancer INT UNSIGNED NOT NULL,
|
dancer INT UNSIGNED NOT NULL,
|
||||||
start DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
start DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||||
|
estimated_end DATETIME NOT NULL,
|
||||||
end DATETIME DEFAULT NULL,
|
end DATETIME DEFAULT NULL,
|
||||||
FOREIGN KEY (dancer) REFERENCES dancers (id) ON DELETE RESTRICT
|
FOREIGN KEY (dancer) REFERENCES dancers (id) ON DELETE RESTRICT
|
||||||
)
|
)
|
||||||
|
|
|
@ -56,5 +56,6 @@ pub struct Show {
|
||||||
pub id: u32,
|
pub id: u32,
|
||||||
pub dancer: u32,
|
pub dancer: u32,
|
||||||
pub start: chrono::NaiveDateTime,
|
pub start: chrono::NaiveDateTime,
|
||||||
|
pub estimated_end: chrono::NaiveDateTime,
|
||||||
pub end: Option<chrono::NaiveDateTime>,
|
pub end: Option<chrono::NaiveDateTime>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ diesel::table! {
|
||||||
id -> Unsigned<Integer>,
|
id -> Unsigned<Integer>,
|
||||||
dancer -> Unsigned<Integer>,
|
dancer -> Unsigned<Integer>,
|
||||||
start -> Datetime,
|
start -> Datetime,
|
||||||
|
estimated_end -> Datetime,
|
||||||
end -> Nullable<Datetime>,
|
end -> Nullable<Datetime>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue