Fix QC Kak Inno Admin, Fix QC Keano UI User, Fix QC Pak jun tabel apbdes
This commit is contained in:
132
src/schema.ts
132
src/schema.ts
@@ -1,67 +1,67 @@
|
||||
import { SchemaObject } from '@paljs/types'
|
||||
// import { SchemaObject } from '@paljs/types'
|
||||
|
||||
export const schema: SchemaObject = {
|
||||
models: [
|
||||
{
|
||||
name: 'Layanan',
|
||||
fields: [
|
||||
{
|
||||
name: 'id',
|
||||
type: 'String',
|
||||
isId: true,
|
||||
unique: false,
|
||||
defaultValue: 'cuid()',
|
||||
list: false,
|
||||
required: true,
|
||||
kind: 'scalar',
|
||||
documentation: '',
|
||||
relationField: false,
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
type: 'String',
|
||||
isId: false,
|
||||
unique: true,
|
||||
list: false,
|
||||
required: true,
|
||||
kind: 'scalar',
|
||||
documentation: '',
|
||||
relationField: false,
|
||||
},
|
||||
],
|
||||
documentation: '',
|
||||
},
|
||||
{
|
||||
name: 'Potensi',
|
||||
fields: [
|
||||
{
|
||||
name: 'id',
|
||||
type: 'String',
|
||||
isId: true,
|
||||
unique: false,
|
||||
defaultValue: 'cuid()',
|
||||
list: false,
|
||||
required: true,
|
||||
kind: 'scalar',
|
||||
documentation: '',
|
||||
relationField: false,
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
type: 'String',
|
||||
isId: false,
|
||||
unique: true,
|
||||
list: false,
|
||||
required: true,
|
||||
kind: 'scalar',
|
||||
documentation: '',
|
||||
relationField: false,
|
||||
},
|
||||
],
|
||||
documentation: '',
|
||||
},
|
||||
],
|
||||
enums: [],
|
||||
dataSource: { provider: 'postgresql', url: 'env("DATABASE_URL")' },
|
||||
generators: [{ name: 'client', provider: 'prisma-client-js' }],
|
||||
}
|
||||
// export const schema: SchemaObject = {
|
||||
// models: [
|
||||
// {
|
||||
// name: 'Layanan',
|
||||
// fields: [
|
||||
// {
|
||||
// name: 'id',
|
||||
// type: 'String',
|
||||
// isId: true,
|
||||
// unique: false,
|
||||
// value: 'cuid()',
|
||||
// list: false,
|
||||
// required: true,
|
||||
// kind: 'scalar',
|
||||
// documentation: '',
|
||||
// relationField: false,
|
||||
// },
|
||||
// {
|
||||
// name: 'name',
|
||||
// type: 'String',
|
||||
// isId: false,
|
||||
// unique: true,
|
||||
// list: false,
|
||||
// required: true,
|
||||
// kind: 'scalar',
|
||||
// documentation: '',
|
||||
// relationField: false,
|
||||
// },
|
||||
// ],
|
||||
// documentation: '',
|
||||
// },
|
||||
// {
|
||||
// name: 'Potensi',
|
||||
// fields: [
|
||||
// {
|
||||
// name: 'id',
|
||||
// type: 'String',
|
||||
// isId: true,
|
||||
// unique: false,
|
||||
// value: 'cuid()',
|
||||
// list: false,
|
||||
// required: true,
|
||||
// kind: 'scalar',
|
||||
// documentation: '',
|
||||
// relationField: false,
|
||||
// },
|
||||
// {
|
||||
// name: 'name',
|
||||
// type: 'String',
|
||||
// isId: false,
|
||||
// unique: true,
|
||||
// list: false,
|
||||
// required: true,
|
||||
// kind: 'scalar',
|
||||
// documentation: '',
|
||||
// relationField: false,
|
||||
// },
|
||||
// ],
|
||||
// documentation: '',
|
||||
// },
|
||||
// ],
|
||||
// enums: [],
|
||||
// dataSource: { provider: 'postgresql', url: 'env("DATABASE_URL")' },
|
||||
// generators: [{ name: 'client', provider: 'prisma-client-js' }],
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user