Skip to content

Commit

Permalink
Update database schema model
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEadie committed Jul 26, 2023
1 parent a51ff95 commit 2a798f9
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 61 deletions.
7 changes: 6 additions & 1 deletion src/database/schema-model/model.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"database-engine": "postgresql"
"database-engine": "postgresql",
"database-properties": {
"database-version": "150003",
"model-version": "1.7"
},
"model-format": "rgmf"
}
36 changes: 0 additions & 36 deletions src/database/schema-model/public.games.rgm

This file was deleted.

16 changes: 0 additions & 16 deletions src/database/schema-model/public.games_id_seq.rgm

This file was deleted.

8 changes: 0 additions & 8 deletions src/database/schema-model/public.rgm

This file was deleted.

11 changes: 11 additions & 0 deletions src/database/schema-model/public/Sequences/games_id_seq.rgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sequence "public"."games_id_seq" {
type = integer
increment = 1
minValue = 1
maxValue = 2147483647
start = 1
cache = 1
cycle = NO CYCLE
ownedBy = "public"."games"."id"
}

23 changes: 23 additions & 0 deletions src/database/schema-model/public/Tables/games.rgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
table "public"."games" {
primaryKey = {
columns = [
"id"
]
name = "games_pkey"
objectType = primaryKey
}
columns = (
column "id" {
type = integer
null = NOT NULL
default = nextval('public.games_id_seq'::regclass)
}
column "status" {
type = text
}
column "hostmachine" {
type = text
}
)
}

3 changes: 3 additions & 0 deletions src/database/schema-model/public/public.rgm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
schema "public" {
}

0 comments on commit 2a798f9

Please sign in to comment.