Fix code compilation

This commit is contained in:
Pierre HUBERT 2023-07-04 18:47:37 +02:00
parent b8c58ff1f5
commit 1a4a7985e0
4 changed files with 265 additions and 293 deletions

View File

@ -27,7 +27,7 @@ cargo install diesel_cli --no-default-features --features postgres
4. Initialize database:
```bash
diesel migation run
diesel migration run
```
> Note: You can access the database directly using this command:

View File

@ -78,13 +78,13 @@ function NoFamilyWidget(p: {
}): React.ReactElement {
return (
<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 !
</Typography>
<div
style={{
flex: 1,
flex: 2,
display: "flex",
flexDirection: "column",
alignItems: "center",

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,9 @@ diesel::table! {
families (id) {
id -> Int4,
time_create -> Int8,
#[max_length = 30]
name -> Varchar,
#[max_length = 7]
invitation_code -> Varchar,
}
}
@ -21,12 +23,16 @@ diesel::table! {
diesel::table! {
users (id) {
id -> Int4,
#[max_length = 30]
name -> Varchar,
#[max_length = 255]
email -> Varchar,
password -> Nullable<Varchar>,
time_create -> Int8,
#[max_length = 150]
reset_password_token -> Nullable<Varchar>,
time_gen_reset_token -> Int8,
#[max_length = 150]
delete_account_token -> Nullable<Varchar>,
time_gen_delete_account_token -> Int8,
time_activate -> Int8,
@ -38,4 +44,8 @@ diesel::table! {
diesel::joinable!(memberships -> families (family_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,
);