You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
411 B
12 lines
411 B
package com.gyf.csams
|
|
|
|
import org.jetbrains.exposed.sql.Column
|
|
import org.jetbrains.exposed.sql.Table
|
|
|
|
object User: Table(){
|
|
val studentId:Column<String> = varchar(name="student_id",length = 8)
|
|
val name:Column<String> = varchar(name="name",length = 10)
|
|
val password:Column<String> = varchar(name="password",length = 32)
|
|
override val primaryKey: PrimaryKey
|
|
get() = PrimaryKey(studentId)
|
|
} |