Fix code compilation
This commit is contained in:
parent
b8c58ff1f5
commit
1a4a7985e0
@ -27,7 +27,7 @@ cargo install diesel_cli --no-default-features --features postgres
|
|||||||
4. Initialize database:
|
4. Initialize database:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
diesel migation run
|
diesel migration run
|
||||||
```
|
```
|
||||||
|
|
||||||
> Note: You can access the database directly using this command:
|
> Note: You can access the database directly using this command:
|
||||||
|
@ -78,13 +78,13 @@ function NoFamilyWidget(p: {
|
|||||||
}): React.ReactElement {
|
}): React.ReactElement {
|
||||||
return (
|
return (
|
||||||
<div style={{ flex: 1, display: "flex", alignItems: "center" }}>
|
<div style={{ flex: 1, display: "flex", alignItems: "center" }}>
|
||||||
<Typography variant="h3" style={{ flex: 1, textAlign: "center" }}>
|
<Typography variant="h3" style={{ flex: 3, textAlign: "center" }}>
|
||||||
Vous n'appartenez à aucune famille !
|
Vous n'appartenez à aucune famille !
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 2,
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
540
geneit_backend/Cargo.lock
generated
540
geneit_backend/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,9 @@ diesel::table! {
|
|||||||
families (id) {
|
families (id) {
|
||||||
id -> Int4,
|
id -> Int4,
|
||||||
time_create -> Int8,
|
time_create -> Int8,
|
||||||
|
#[max_length = 30]
|
||||||
name -> Varchar,
|
name -> Varchar,
|
||||||
|
#[max_length = 7]
|
||||||
invitation_code -> Varchar,
|
invitation_code -> Varchar,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -21,12 +23,16 @@ diesel::table! {
|
|||||||
diesel::table! {
|
diesel::table! {
|
||||||
users (id) {
|
users (id) {
|
||||||
id -> Int4,
|
id -> Int4,
|
||||||
|
#[max_length = 30]
|
||||||
name -> Varchar,
|
name -> Varchar,
|
||||||
|
#[max_length = 255]
|
||||||
email -> Varchar,
|
email -> Varchar,
|
||||||
password -> Nullable<Varchar>,
|
password -> Nullable<Varchar>,
|
||||||
time_create -> Int8,
|
time_create -> Int8,
|
||||||
|
#[max_length = 150]
|
||||||
reset_password_token -> Nullable<Varchar>,
|
reset_password_token -> Nullable<Varchar>,
|
||||||
time_gen_reset_token -> Int8,
|
time_gen_reset_token -> Int8,
|
||||||
|
#[max_length = 150]
|
||||||
delete_account_token -> Nullable<Varchar>,
|
delete_account_token -> Nullable<Varchar>,
|
||||||
time_gen_delete_account_token -> Int8,
|
time_gen_delete_account_token -> Int8,
|
||||||
time_activate -> Int8,
|
time_activate -> Int8,
|
||||||
@ -38,4 +44,8 @@ diesel::table! {
|
|||||||
diesel::joinable!(memberships -> families (family_id));
|
diesel::joinable!(memberships -> families (family_id));
|
||||||
diesel::joinable!(memberships -> users (user_id));
|
diesel::joinable!(memberships -> users (user_id));
|
||||||
|
|
||||||
diesel::allow_tables_to_appear_in_same_query!(families, memberships, users,);
|
diesel::allow_tables_to_appear_in_same_query!(
|
||||||
|
families,
|
||||||
|
memberships,
|
||||||
|
users,
|
||||||
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user