26 lines
702 B
JavaScript
26 lines
702 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const Subdomain = sequelize.define('subdomains', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
subdomain_name: {
|
|
type: type.STRING
|
|
// unique: {
|
|
// args: true,
|
|
// msg: 'Oops. Looks like subdomain already exist.'
|
|
// }
|
|
},
|
|
d_id: type.INTEGER,
|
|
domain_number: type.TEXT,
|
|
certi_id: type.INTEGER,
|
|
cource_id: type.INTEGER,
|
|
no_assign_note: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return Subdomain;
|
|
} |