@arch-cadre/core 0.0.54 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1894,6 +1894,109 @@ export declare const relations: import("drizzle-orm").ExtractTablesWithRelations
1894
1894
  dialect: "pg";
1895
1895
  }>;
1896
1896
  }>;
1897
+ export declare const activityLogsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
1898
+ name: "activity_logs";
1899
+ schema: undefined;
1900
+ columns: {
1901
+ id: import("drizzle-orm/pg-core").PgColumn<{
1902
+ name: string;
1903
+ tableName: "activity_logs";
1904
+ dataType: "string";
1905
+ data: string;
1906
+ driverParam: string;
1907
+ notNull: true;
1908
+ hasDefault: true;
1909
+ isPrimaryKey: true;
1910
+ isAutoincrement: false;
1911
+ hasRuntimeDefault: true;
1912
+ enumValues: [string, ...string[]];
1913
+ baseColumn: never;
1914
+ identity: undefined;
1915
+ generated: undefined;
1916
+ }, {}>;
1917
+ userId: import("drizzle-orm/pg-core").PgColumn<{
1918
+ name: string;
1919
+ tableName: "activity_logs";
1920
+ dataType: "string";
1921
+ data: string;
1922
+ driverParam: string;
1923
+ notNull: false;
1924
+ hasDefault: false;
1925
+ isPrimaryKey: false;
1926
+ isAutoincrement: false;
1927
+ hasRuntimeDefault: false;
1928
+ enumValues: [string, ...string[]];
1929
+ baseColumn: never;
1930
+ identity: undefined;
1931
+ generated: undefined;
1932
+ }, {}>;
1933
+ action: import("drizzle-orm/pg-core").PgColumn<{
1934
+ name: string;
1935
+ tableName: "activity_logs";
1936
+ dataType: "string";
1937
+ data: string;
1938
+ driverParam: string;
1939
+ notNull: true;
1940
+ hasDefault: false;
1941
+ isPrimaryKey: false;
1942
+ isAutoincrement: false;
1943
+ hasRuntimeDefault: false;
1944
+ enumValues: [string, ...string[]];
1945
+ baseColumn: never;
1946
+ identity: undefined;
1947
+ generated: undefined;
1948
+ }, {}>;
1949
+ description: import("drizzle-orm/pg-core").PgColumn<{
1950
+ name: string;
1951
+ tableName: "activity_logs";
1952
+ dataType: "string";
1953
+ data: string;
1954
+ driverParam: string;
1955
+ notNull: true;
1956
+ hasDefault: false;
1957
+ isPrimaryKey: false;
1958
+ isAutoincrement: false;
1959
+ hasRuntimeDefault: false;
1960
+ enumValues: [string, ...string[]];
1961
+ baseColumn: never;
1962
+ identity: undefined;
1963
+ generated: undefined;
1964
+ }, {}>;
1965
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
1966
+ name: string;
1967
+ tableName: "activity_logs";
1968
+ dataType: "object json";
1969
+ data: unknown;
1970
+ driverParam: unknown;
1971
+ notNull: false;
1972
+ hasDefault: false;
1973
+ isPrimaryKey: false;
1974
+ isAutoincrement: false;
1975
+ hasRuntimeDefault: false;
1976
+ enumValues: undefined;
1977
+ baseColumn: never;
1978
+ identity: undefined;
1979
+ generated: undefined;
1980
+ }, {}>;
1981
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1982
+ name: string;
1983
+ tableName: "activity_logs";
1984
+ dataType: "object date";
1985
+ data: Date;
1986
+ driverParam: string;
1987
+ notNull: true;
1988
+ hasDefault: true;
1989
+ isPrimaryKey: false;
1990
+ isAutoincrement: false;
1991
+ hasRuntimeDefault: false;
1992
+ enumValues: undefined;
1993
+ baseColumn: never;
1994
+ identity: undefined;
1995
+ generated: undefined;
1996
+ }, {}>;
1997
+ };
1998
+ dialect: "pg";
1999
+ }>;
1897
2000
  export declare const coreSchema: {
1898
2001
  userTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
1899
2002
  name: "users";
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/server/database/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { defineRelations, sql } from "drizzle-orm";
2
- import { boolean, bytea, pgTable, text, timestamp } from "drizzle-orm/pg-core";
2
+ import { boolean, bytea, jsonb, pgTable, text, timestamp } from "drizzle-orm/pg-core";
3
3
  export const userTable = pgTable("users", {
4
4
  id: text("id")
5
5
  .$defaultFn(() => crypto.randomUUID())
@@ -177,6 +177,19 @@ export const relations = defineRelations({
177
177
  }),
178
178
  },
179
179
  }));
180
+ export const activityLogsTable = pgTable("activity_logs", {
181
+ id: text("id")
182
+ .$defaultFn(() => crypto.randomUUID())
183
+ .notNull()
184
+ .primaryKey(),
185
+ userId: text("user_id").references(() => userTable.id, {
186
+ onDelete: "set null",
187
+ }),
188
+ action: text("action").notNull(), // np. "blog.post.created"
189
+ description: text("description").notNull(), // np. "Użytkownik dodał komentarz"
190
+ metadata: jsonb("metadata"), // dodatkowe dane (np. ID posta)
191
+ createdAt: timestamp("created_at", { precision: 3 }).notNull().defaultNow(),
192
+ });
180
193
  export const coreSchema = {
181
194
  userTable,
182
195
  rolesTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arch-cadre/core",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "type": "module",
5
5
  "description": "Core logic for Kryo framework",
6
6
  "types": "./dist/index.d.ts",