Various changes
This commit is contained in:
@@ -5,4 +5,5 @@ import tink.sql.Types;
|
||||
typedef MService = {
|
||||
@:autoIncrement @:primary public var id(default, null):Id<MService>;
|
||||
public var name:VarChar<50>;
|
||||
public var description:VarChar<1024>;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package model;
|
||||
|
||||
import tink.sql.Types;
|
||||
|
||||
|
||||
typedef MSubscription = {
|
||||
@:autoIncrement @:primary public var id(default, null):Id<MSubscription>;
|
||||
public var subscriber:Id<MUser>;
|
||||
public var service:Id<MService>;
|
||||
}
|
||||
@@ -8,5 +8,4 @@ typedef MUser = {
|
||||
public var name:VarChar<50>;
|
||||
public var email:VarChar<50>;
|
||||
public var password:VarChar<50>;
|
||||
public var services:Id<MService>;
|
||||
}
|
||||
@@ -1,18 +1,17 @@
|
||||
package model.sites.drivebycool;
|
||||
|
||||
import tink.sql.Types;
|
||||
|
||||
|
||||
typedef MSubscription = {
|
||||
@:autoIncrement @:primary public var id(default, null):Id<MSubscription>;
|
||||
public var subscriber:VarChar<50>;
|
||||
public var project:Id<MUser>;
|
||||
public var subscribers:Id<Subscription>;
|
||||
}
|
||||
import model.MSubscription;
|
||||
|
||||
typedef MProject = {
|
||||
@:autoIncrement @:primary public var id(default, null):Id<MProject>;
|
||||
public var name:VarChar<50>;
|
||||
public var owner:Id<MUser>;
|
||||
public var subscribers:Id<Subscription>;
|
||||
public var description:VarChar<1024>;
|
||||
}
|
||||
|
||||
typedef MMembership = {
|
||||
@:autoIncrement @:primary public var id(default, null):Id<MMembership>;
|
||||
public var project:Id<MProject>;
|
||||
public var user:Id<MUser>;
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package model.services;
|
||||
|
||||
import tink.sql.Types;
|
||||
|
||||
typedef MMembership = {
|
||||
@:autoIncrement @:primary public var id(default, null):Id<MMembership>;
|
||||
public var project:Id<MProject>;
|
||||
|
||||
Reference in New Issue
Block a user