mirror of
https://github.com/latentPrion/cppbessot.git
synced 2026-04-17 18:44:23 +00:00
Add generated test-schema-v1.2
This commit is contained in:
24
db/test-schema-v1.2/generated-sql-ddl/postgre/Agent.sql
Normal file
24
db/test-schema-v1.2/generated-sql-ddl/postgre/Agent.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
/* This file was generated by ODB, object-relational mapping (ORM)
|
||||
* compiler for C++.
|
||||
*/
|
||||
|
||||
DROP TABLE IF EXISTS "Agent" CASCADE;
|
||||
|
||||
DROP TABLE IF EXISTS "schema_version";
|
||||
|
||||
CREATE TABLE "Agent" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"role" TEXT NOT NULL,
|
||||
"persistent" BOOLEAN NOT NULL,
|
||||
"displayName" TEXT NOT NULL,
|
||||
"trustScore" INTEGER NOT NULL);
|
||||
|
||||
CREATE TABLE "schema_version" (
|
||||
"name" TEXT NOT NULL PRIMARY KEY,
|
||||
"version" BIGINT NOT NULL,
|
||||
"migration" BOOLEAN NOT NULL);
|
||||
|
||||
INSERT INTO "schema_version" (
|
||||
"name", "version", "migration")
|
||||
VALUES ('', 2, FALSE);
|
||||
|
||||
Reference in New Issue
Block a user