Create artists table
This commit is contained in:
parent
a6f141e841
commit
0924c954b8
@ -0,0 +1 @@
|
||||
DROP TABLE artists;
|
4
migrations/2024-02-06-145714_create_artists_table/up.sql
Normal file
4
migrations/2024-02-06-145714_create_artists_table/up.sql
Normal file
@ -0,0 +1,4 @@
|
||||
CREATE TABLE artists (
|
||||
id SERIAL PRIMARY KEY UNIQUE NOT NULL,
|
||||
name VARCHAR NOT NULL
|
||||
);
|
@ -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,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user