feat: complete template
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type MediaResources struct {
|
||||
ID int64 `sql:"primary_key"`
|
||||
MediaID int64
|
||||
Type string
|
||||
Source *string
|
||||
Size int64
|
||||
Publish bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
24
backend/database/models/qvyun/public/model/medias.go
Normal file
24
backend/database/models/qvyun/public/model/medias.go
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Medias struct {
|
||||
ID int64 `sql:"primary_key"`
|
||||
TenantID int64
|
||||
Title string
|
||||
Description string
|
||||
Price int64
|
||||
Discount int64
|
||||
Publish bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
19
backend/database/models/qvyun/public/model/migrations.go
Normal file
19
backend/database/models/qvyun/public/model/migrations.go
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Migrations struct {
|
||||
ID int32 `sql:"primary_key"`
|
||||
VersionID int64
|
||||
IsApplied bool
|
||||
Tstamp time.Time
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
type TenantUserBalances struct {
|
||||
ID int64 `sql:"primary_key"`
|
||||
UserID int64
|
||||
TenantID int64
|
||||
Balance int64
|
||||
}
|
||||
22
backend/database/models/qvyun/public/model/tenants.go
Normal file
22
backend/database/models/qvyun/public/model/tenants.go
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Tenants struct {
|
||||
ID int64 `sql:"primary_key"`
|
||||
Name string
|
||||
Slug string
|
||||
Description *string
|
||||
ExpireAt time.Time
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type UserBalanceHistories struct {
|
||||
ID int64 `sql:"primary_key"`
|
||||
UserID int64
|
||||
TenantID int64
|
||||
Balance int64
|
||||
Target *string
|
||||
Type string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
21
backend/database/models/qvyun/public/model/user_medias.go
Normal file
21
backend/database/models/qvyun/public/model/user_medias.go
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type UserMedias struct {
|
||||
ID int64 `sql:"primary_key"`
|
||||
UserID int64
|
||||
TenantID int64
|
||||
MediaID int64
|
||||
Price int64
|
||||
CreatedAt time.Time
|
||||
}
|
||||
22
backend/database/models/qvyun/public/model/users.go
Normal file
22
backend/database/models/qvyun/public/model/users.go
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Users struct {
|
||||
ID int64 `sql:"primary_key"`
|
||||
OpenID string
|
||||
UnionID *string
|
||||
OAuth *string
|
||||
ExpireIn time.Time
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
19
backend/database/models/qvyun/public/model/users_tenants.go
Normal file
19
backend/database/models/qvyun/public/model/users_tenants.go
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type UsersTenants struct {
|
||||
ID int64 `sql:"primary_key"`
|
||||
UserID int64
|
||||
TenantID int64
|
||||
CreatedAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user