feat(types,module-sdk): setup authentication module skeleton (#5943)

**What**
- add authentication module skeleton
This commit is contained in:
Philip Korsholm
2023-12-21 06:56:20 +00:00
committed by GitHub
parent 3f6d79961d
commit 6d1e3cc028
44 changed files with 720 additions and 0 deletions
@@ -0,0 +1,36 @@
{
"namespaces": [
"public"
],
"name": "public",
"tables": [
{
"columns": {
"id": {
"name": "id",
"type": "text",
"unsigned": false,
"autoincrement": false,
"primary": false,
"nullable": false,
"mappedType": "text"
}
},
"name": "auth_user",
"schema": "public",
"indexes": [
{
"keyName": "auth_user_pkey",
"columnNames": [
"id"
],
"composite": false,
"primary": true,
"unique": true
}
],
"checks": [],
"foreignKeys": {}
}
]
}
@@ -0,0 +1,13 @@
import { Migration } from '@mikro-orm/migrations';
export class Migration20231220132440 extends Migration {
async up(): Promise<void> {
this.addSql('create table "auth_user" ("id" text not null, constraint "auth_user_pkey" primary key ("id"));');
}
async down(): Promise<void> {
this.addSql('drop table if exists "auth_user" cascade;');
}
}