Create artists table

This commit is contained in:
Ethan Girouard 2024-02-08 18:37:55 -05:00
parent a6f141e841
commit 0924c954b8
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
DROP TABLE artists;

View File

@ -0,0 +1,4 @@
CREATE TABLE artists (
id SERIAL PRIMARY KEY UNIQUE NOT NULL,
name VARCHAR NOT NULL
);

View File

@ -1,5 +1,12 @@
// @generated automatically by Diesel CLI.
diesel::table! {
artists (id) {
id -> Int4,
name -> Varchar,
}
}
diesel::table! {
users (id) {
id -> Int4,
@ -9,3 +16,8 @@ diesel::table! {
created_at -> Timestamp,
}
}
diesel::allow_tables_to_appear_in_same_query!(
artists,
users,
);