-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of
table
block in schema file
This is another step towards matching Rust syntax for the schema file
- Loading branch information
1 parent
5db3536
commit 49c2883
Showing
69 changed files
with
807 additions
and
791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
table user_and_packages { | ||
model User { | ||
#[key] | ||
#[auto] | ||
id: Id, | ||
#[table(user_and_packages)] | ||
model User { | ||
#[key] | ||
#[auto] | ||
id: Id, | ||
|
||
name: String, | ||
name: String, | ||
|
||
#[unique] | ||
email: String, | ||
#[unique] | ||
email: String, | ||
|
||
packages: [Package], | ||
} | ||
packages: [Package], | ||
} | ||
|
||
#[key(partition = user_id, local = id)] | ||
model Package { | ||
#[relation(key = user_id, references = id)] | ||
user: User, | ||
#[table(user_and_packages)] | ||
#[key(partition = user_id, local = id)] | ||
model Package { | ||
#[relation(key = user_id, references = id)] | ||
user: User, | ||
|
||
user_id: Id<User>, | ||
user_id: Id<User>, | ||
|
||
#[auto] | ||
id: Id, | ||
#[auto] | ||
id: Id, | ||
|
||
name: String, | ||
} | ||
} | ||
name: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.