summaryrefslogtreecommitdiff
path: root/projects/3/structure.sql
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-01-13 16:54:22 -0700
committermo khan <mo@mokhan.ca>2025-01-13 16:54:22 -0700
commit49053acb0649598c148c91d63938f2b9fefe38da (patch)
tree3bcf5fb27693bd02c2d51bf4452b2defa379dacb /projects/3/structure.sql
parent9b5132cb3b1d859825c74b69708ec299f491293f (diff)
Generate the initial schema for the project 3 database
Diffstat (limited to 'projects/3/structure.sql')
-rw-r--r--projects/3/structure.sql22
1 files changed, 22 insertions, 0 deletions
diff --git a/projects/3/structure.sql b/projects/3/structure.sql
new file mode 100644
index 0000000..6017494
--- /dev/null
+++ b/projects/3/structure.sql
@@ -0,0 +1,22 @@
+create table customers(
+ id integer primary key asc,
+ first_name varchar(255),
+ last_name varchar(255),
+ created_at datetime default current_timestamp,
+ updated_at datetime default current_timestamp
+);
+
+create table categories(
+ id integer primary key asc
+);
+
+create table media(
+ id integer primary key asc
+);
+
+create table rentals(
+ id integer primary key asc
+);
+
+.schema
+.quit