mirror of
https://github.com/acedanger/budget-database.git
synced 2025-12-05 22:50:13 -08:00
moving to postgres
This commit is contained in:
14
mysql/tables/BUDGET_CATEGORY.sql
Normal file
14
mysql/tables/BUDGET_CATEGORY.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
use Leo
|
||||
go
|
||||
|
||||
if object_id('dbo.BUDGET_CATEGORY', 'U') is not null
|
||||
drop table dbo.BUDGET_CATEGORY
|
||||
go
|
||||
|
||||
CREATE TABLE dbo.BUDGET_CATEGORY
|
||||
(
|
||||
CtgId smallint IDENTITY(1,1) NOT NULL
|
||||
, CtgDescription varchar(200) NULL
|
||||
, CtgCredit bit default 0
|
||||
)
|
||||
GO
|
||||
15
mysql/tables/BUDGET_DETAIL.sql
Normal file
15
mysql/tables/BUDGET_DETAIL.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
use Leo
|
||||
go
|
||||
|
||||
if object_id('dbo.BUDGET_DETAIL', 'U') is not null
|
||||
drop table dbo.BUDGET_DETAIL
|
||||
go
|
||||
|
||||
create table dbo.BUDGET_DETAIL
|
||||
(
|
||||
TrxId int identity not null
|
||||
, TrxDescription varchar(200) not null
|
||||
, TrxDate date not null
|
||||
, TrxAmount decimal(9,2)
|
||||
, InsertDtTm datetime default CURRENT_TIMESTAMP
|
||||
)
|
||||
12
mysql/tables/HOLIDAYS.sql
Normal file
12
mysql/tables/HOLIDAYS.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
use Leo
|
||||
go
|
||||
|
||||
CREATE TABLE dbo.HOLIDAYS
|
||||
(
|
||||
dt date NOT NULL,
|
||||
Holiday varchar(50) NULL,
|
||||
PRIMARY KEY CLUSTERED (
|
||||
dt ASC
|
||||
)
|
||||
)
|
||||
GO
|
||||
Reference in New Issue
Block a user