chore: reformat schemas and documentation files for consistency
Some checks failed
Lint / lint (push) Failing after 4m58s
Some checks failed
Lint / lint (push) Failing after 4m58s
Standardized formatting across database schema files and updated documentation structure to improve clarity and organization.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
boolean,
|
||||
index,
|
||||
pgTable,
|
||||
varchar,
|
||||
timestamp,
|
||||
uuid,
|
||||
index,
|
||||
boolean,
|
||||
varchar,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { users } from "./users";
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
pgTable,
|
||||
varchar,
|
||||
timestamp,
|
||||
uuid,
|
||||
index,
|
||||
jsonb,
|
||||
pgTable,
|
||||
timestamp,
|
||||
uuid,
|
||||
varchar,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { users } from "./users";
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import {
|
||||
index,
|
||||
integer,
|
||||
pgEnum,
|
||||
pgTable,
|
||||
varchar,
|
||||
primaryKey,
|
||||
timestamp,
|
||||
uuid,
|
||||
pgEnum,
|
||||
index,
|
||||
primaryKey,
|
||||
integer,
|
||||
varchar,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { users } from "./users";
|
||||
import { tags } from "./tags";
|
||||
import { users } from "./users";
|
||||
|
||||
export const contentType = pgEnum("content_type", ["meme", "gif"]);
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
export * from "./users";
|
||||
export * from "./rbac";
|
||||
export * from "./sessions";
|
||||
export * from "./api_keys";
|
||||
export * from "./tags";
|
||||
export * from "./content";
|
||||
export * from "./reports";
|
||||
export * from "./audit_logs";
|
||||
export * from "./content";
|
||||
export * from "./rbac";
|
||||
export * from "./reports";
|
||||
export * from "./sessions";
|
||||
export * from "./tags";
|
||||
export * from "./users";
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
index,
|
||||
pgTable,
|
||||
varchar,
|
||||
primaryKey,
|
||||
timestamp,
|
||||
uuid,
|
||||
primaryKey,
|
||||
index,
|
||||
varchar,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { users } from "./users";
|
||||
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
import {
|
||||
index,
|
||||
pgEnum,
|
||||
pgTable,
|
||||
varchar,
|
||||
text,
|
||||
timestamp,
|
||||
uuid,
|
||||
pgEnum,
|
||||
index,
|
||||
text,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { users } from "./users";
|
||||
import { contents } from "./content";
|
||||
import { tags } from "./tags";
|
||||
import { users } from "./users";
|
||||
|
||||
export const reportStatus = pgEnum("report_status", [
|
||||
"pending",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
boolean,
|
||||
index,
|
||||
pgTable,
|
||||
varchar,
|
||||
timestamp,
|
||||
uuid,
|
||||
index,
|
||||
boolean,
|
||||
varchar,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { users } from "./users";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { pgTable, varchar, timestamp, uuid, index } from "drizzle-orm/pg-core";
|
||||
import { index, pgTable, timestamp, uuid, varchar } from "drizzle-orm/pg-core";
|
||||
|
||||
export const tags = pgTable(
|
||||
"tags",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import {
|
||||
pgTable,
|
||||
varchar,
|
||||
timestamp,
|
||||
uuid,
|
||||
pgEnum,
|
||||
index,
|
||||
boolean,
|
||||
customType,
|
||||
index,
|
||||
pgEnum,
|
||||
pgTable,
|
||||
timestamp,
|
||||
uuid,
|
||||
varchar,
|
||||
} from "drizzle-orm/pg-core";
|
||||
|
||||
// Type personnalisé pour les données chiffrées PGP (stockées en bytea dans Postgres)
|
||||
|
||||
Reference in New Issue
Block a user