generated from avior/template-web-astro
22
src/models/State/index.ts
Normal file
22
src/models/State/index.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import Schema, { type Impl } from 'models/Schema'
|
||||
|
||||
const schema = new Schema({
|
||||
/**
|
||||
* the project ID
|
||||
*/
|
||||
id: {type: String, database: {unique: true, index: true, auto: true}},
|
||||
project: String, // project id
|
||||
|
||||
/**
|
||||
* the email the project was created from
|
||||
*/
|
||||
name: { type: String, nullable: true },
|
||||
|
||||
color: { type: String, nullable: true },
|
||||
|
||||
preset: { type: Boolean, defaultValue: false }
|
||||
})
|
||||
|
||||
export default schema
|
||||
|
||||
export type ProjectObj = Impl<typeof schema>
|
Reference in New Issue
Block a user