Skip to content

Commit

Permalink
Create Projects
Browse files Browse the repository at this point in the history
  • Loading branch information
pphatdev committed Apr 27, 2024
1 parent 7516556 commit 8f48712
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/stub/sql.stub
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ CREATE TABLE IF NOT EXISTS public.[name] (
-- your field name
"status" BOOLEAN NOT NULL DEFAULT true,
is_deleted BOOLEAN NOT NULL DEFAULT false,
created_date DATE NOT NULL DEFAULT timestamp(0)
created_date DATE NOT NULL DEFAULT now()
);
17 changes: 17 additions & 0 deletions migrations/sql/create_projects_27042024_083644.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- public.projects definition

-- Drop table

-- DROP TABLE public.projects;

CREATE TABLE IF NOT EXISTS public.projects (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
description VARCHAR(255) ,
icon VARCHAR(255) NOT NULL,
live VARCHAR(255) NOT NULL,
source VARCHAR(255) NOT NULL,
"status" BOOLEAN NOT NULL DEFAULT true,
is_deleted BOOLEAN NOT NULL DEFAULT false,
created_date DATE NOT NULL DEFAULT now()
);

0 comments on commit 8f48712

Please sign in to comment.