generated from avior/template-web-astro
23 lines
433 B
TypeScript
23 lines
433 B
TypeScript
import Schema, { s, type SchemaInfer } from 'libs/Schema'
|
|
|
|
const schema = new Schema({
|
|
/**
|
|
* the project ID
|
|
*/
|
|
id: s.string().attr('db:unique', 'db:auto'),
|
|
project: s.string(), // project id
|
|
|
|
/**
|
|
* the email the project was created from
|
|
*/
|
|
name: s.string().nullable(),
|
|
|
|
color: s.string().nullable(),
|
|
|
|
preset: s.boolean().defaultValue(false)
|
|
})
|
|
|
|
export default schema
|
|
|
|
export type StateObj = SchemaInfer<typeof schema>
|